package bma.common.langutil.jmshell;

import java.util.Set;

public interface Session {

	public String getId();

	public Object getAttribute(String name);

	public Set<String> getAttributeNames();

	public void setAttribute(String name, Object value);

	public void removeAttribute(String name);

	public void clearAttributes();

	public boolean write(String msg);

	public boolean writeln(String msg);
	
	public void close();
	
	public void execute(String command);

	public void addCloseListener(SessionCloseListener lis);

	public void removeCloseListener(SessionCloseListener lis);
}
